﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Devtm.ServiceModel.Proxy.Events
{



   

    /// <summary>
    /// event args for an interception before the call service
    /// </summary>
    public class InterceptBeforeEventArgs : InterceptEventArgs
    {



        public InterceptBeforeEventArgs(System.Reflection.MethodBase methodBase, object[] parameters)
            : base(methodBase, parameters)
        {
            Value = new NothingObject();
        }

        /// <summary>
        ///  name of the called method
        /// </summary>
        public string MethodName { get; set; }

        public object Value { get; set; }

        public bool InterceptResult { get; set; }

        public T GetResult<T>() { return (T)Value; }

    }

    public class NothingObject
    {

    }

}
